package com.mew.common.entity.config;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zebra.common.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author ztq
 * @since 2021-06-17
 */

@Data
@ToString
@TableName("c_jewel_product")
public class JewelProduct {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Long jewel;

    private Long gold;

    private Integer state;

    public void write(ByteBuf b){
        ByteBufUtils.writeInt(b,id);
        ByteBufUtils.writeLong(b,jewel);
        ByteBufUtils.writeLong(b,gold);
    }

}
